//
//  Common.swift
//  weibo
//
//  Created by 吴婷婷 on 15/11/5.
//  Copyright © 2015年 wutingting. All rights reserved.
//

import UIKit

///切换根视图控制器通知
let WBSwitchRootViewControllerNotification = "WBSwitchRootViewControllerNotification"
///选中缩略图照片通知
let WBStatusSelectedPhotoNotification = "WBStatusSelectedPhotoNotification"

/// 选中 URL 数组 KEY
let WBStatusSelectedPhotoURLKey = "WBStatusSelectedURLKey"
/// 选中 索引 KEY
let WBStatusSelectedPhotoIndexPathKey = "WBStatusSelectedIndexPathKey"

///全局外观渲染颜色
let WBAppearanceTintColor = UIColor.orangeColor()

//延迟执行
func delay(delta: Double, callFunc: () -> ()){
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, Int64(delta * Double (NSEC_PER_SEC))), dispatch_get_main_queue(), { () -> Void in
        callFunc()
    })
}
    
